/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package escr.persistencia;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

/**
 *
 * @author Aditardo
 */
@Entity
@Table(name = "seleccion")
@NamedQueries({@NamedQuery(name = "Seleccion.findById", query = "SELECT s FROM Seleccion s WHERE s.id = :id"), @NamedQuery(name = "Seleccion.findBySeleccionar", query = "SELECT s FROM Seleccion s WHERE s.seleccionar = :seleccionar"), @NamedQuery(name = "Seleccion.findByDato", query = "SELECT s FROM Seleccion s WHERE s.dato = :dato"), @NamedQuery(name = "Seleccion.findByDocumento", query = "SELECT s FROM Seleccion s WHERE s.documento = :documento")})
public class Seleccion implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Column(name = "id", nullable = false)
    private Integer id;
    @Column(name = "seleccionar")
    private Integer seleccionar;
    @Column(name = "dato")
    private Double dato;
    @Column(name = "documento")
    private Integer documento;

    public Seleccion() {
    }

    public Seleccion(Integer id) {
        this.id = id;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getSeleccionar() {
        return seleccionar;
    }

    public void setSeleccionar(Integer seleccionar) {
        this.seleccionar = seleccionar;
    }

    public Double getDato() {
        return dato;
    }

    public void setDato(Double dato) {
        this.dato = dato;
    }

    public Integer getDocumento() {
        return documento;
    }

    public void setDocumento(Integer documento) {
        this.documento = documento;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (id != null ? id.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Seleccion)) {
            return false;
        }
        Seleccion other = (Seleccion) object;
        if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "escr.persistencia.Seleccion[id=" + id + "]";
    }

}
